#ifndef __PMW_Control_H
#define __PMW_Control_H

#ifdef APM32E10X_HD
	#include "apm32e10x_gpio.h"
	#include "apm32e10x_rcm.h"
#elif defined AT32F403AVGT7
	#include "at32f403a_407_gpio.h"	
	#include "at32f403a_407_crm.h" 
#else
	#include "apm32f10x_gpio.h"
	#include "apm32f10x_rcm.h"
#endif


// PWM 输出 // 
#if defined SQDri_EVSEB_7KW || defined SQDri_EVSEB_11KW
	//引脚块1 = 接引脚块A = PA8
	#define PWM_RTC             RCM_APB2_PERIPH_GPIOA
	#define PWM_PinPort         GPIOA
	#define PWM1_PinId          GPIO_PIN_8

#else

	//引脚块1 = 接引脚块A = PB0
	#define PWM_RTC             RCM_APB2_PERIPH_GPIOB
	#define PWM_PinPort         GPIOB
	#define PWM1_PinId          GPIO_PIN_0
	
#endif

void PWM_Pin_init(void);

#endif


